 
import coffeemachine.CoffeeMachine;
import junit.framework.TestCase;
 
public class TestCoffeeMachine extends TestCase {
 
 
    public void testCoffeeMachineClass1(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass2(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.insert(1);
        assertEquals(20 , o1.getmoney());
        assertEquals(20 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass3(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass4(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass5(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.insert(1);
        assertEquals(20 , o1.getmoney());
        o1.insert(1);
        assertEquals(30 , o1.getmoney());
        assertEquals(30 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass6(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(2);
        assertEquals(20 , o1.getmoney());
        o1.cook();
        assertEquals(10 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass7(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        assertEquals(0 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass8(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.insert(1);
        assertEquals(20 , o1.getmoney());
        o1.cook();
        assertEquals(10 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass9(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(2);
        assertEquals(20 , o1.getmoney());
        o1.cook();
        assertEquals(10 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(10 , o1.getmoney());
        o1.insert(1);
        assertEquals(20 , o1.getmoney());
        assertEquals(20 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass10(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(2);
        assertEquals(20 , o1.getmoney());
        o1.cook();
        assertEquals(10 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass11(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass12(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass13(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass14(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        assertEquals(0 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
        assertEquals(0 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass15(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.insert(1);
        assertEquals(20 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(20 , o1.getmoney());
        assertEquals(20 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
 
    public void testCoffeeMachineClass16(){
 
        CoffeeMachine o1 = new CoffeeMachine();
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        o1.cook();
        assertEquals(0 , o1.getmoney());
        assertEquals(0 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
        o1.insert(1);
        assertEquals(10 , o1.getmoney());
        assertEquals("Coffee is ready. Thank you!" , o1.done());
        assertEquals(10 , o1.getmoney());
        assertEquals(10 , o1.withdraw());
        assertEquals(0 , o1.getmoney());
  
        }
}
